echo start

echo arg1=$1
echo arg2=$2

sn=101
while true
do

    sleep 1
    dest=ch$1_$sn.jpg
    snapshot -o ${dest} -s $1
    let "sn+=1"    

done


echo finish
